"""
@Project:大鹏
@File:main.py
@Author:马可
@Date:上午 10:28
"""
from app import app
from flask_cors import CORS
from views.index import index_blue
from flask import request,jsonify


#日志模块
import logging
from logging import FileHandler

app.config.from_object(Config)
CORS(app)

app.register_blueprint(index_blue,url_prefix="/index")



if __name__=="__main__":
    handler = logging.FileHandler("logs/"+'log.txt')
    app.logger.addHandler(handler)
    app.run()